package ClientDB;
import java.util.ArrayList;
import DataConnectionInterface.*;

/**
 *
 * @author Tomy
 */
public class HighScoreTable {

    private int usersNum;
    private ArrayList<UserInfo> users;

    private String debugDescription= "tomer likes to write gui code, and hiking. also: T"
                + "he word dungeon comes from Old French. donjon (also spelt dongon), whi"
                + "ch in its earliest usage, meant a keep, the main tower of a castle which"
                + " formed the final defensive position to which the garrison could retreat"
                + " when outer fortifications were overcome. The first recorded instance "
                + "of the word in English near the beginning of the 14th century also meant ";


    public HighScoreTable() {        
        initHighScores();
    }

    private void initHighScores() {
        this.users = new ArrayList<UserInfo>();
        users.add(new UserInfo("tomy", "", debugDescription));
        users.add(new UserInfo("Atra", "", debugDescription));
        users.add(new UserInfo("Yoko", "", debugDescription));
        users.add(new UserInfo("THE flash", "", debugDescription));
        users.add(new UserInfo("the three muskeeters", "", debugDescription));
    }

    public int getNumOfUsers() {
        return users.size();
    }

    public UserInfo getUsersHighScore(int index) {
        return users.get(index);
    }

}